﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using GridCut.Scaffold;
using Emgu;
using Emgu.CV;
using GridCut;
using System.Collections.Generic;
using System.Drawing;
using Scaffold;

namespace UnitTest
{
	[TestClass]
	public class UnitTest1
	{
		[TestMethod]
		public void TestMethod1()
		{
			BGSubtractor subtractor = new BGSubtractor();
			Mat mask = new Mat();
			Mat fgimg=new Mat();
			subtractor.Fit(@"F:\Workshop\GridCut\GridCut\train");
			
			subtractor.Extract(CvInvoke.Imread(@"F:\Workshop\GridCut\GridCut\test\9.JPG"), mask, fgimg);
			CvInvoke.NamedWindow("win");
			CvInvoke.Imshow("win", fgimg);
			CvInvoke.WaitKey();


		}
	}
}
